From: Ian Jackson Date: Mon, 14 May 2018 13:33:50 +0000 (+0100) Subject: libxl: Provide better error message when qemu restrict user not found X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~3671 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=bef007617e73d1fe7557a51765d37ee0e4b00e8d;p=xen.git libxl: Provide better error message when qemu restrict user not found Add mention of LIBXL_QEMU_USER_RANGE_BASE, in case that is what the user was intending. Cc: Anthony Perard Signed-off-by: Ian Jackson Acked-by: Wei Liu Reviewed-by: Roger Pau Monné --- diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c index bad3ef5b67..bd187463ec 100644 --- a/tools/libxl/libxl_dm.c +++ b/tools/libxl/libxl_dm.c @@ -1702,8 +1702,9 @@ static int libxl__build_device_model_args_new(libxl__gc *gc, } LOGD(ERROR, guest_domid, - "Could not find user %s%d or %s, cannot restrict", - LIBXL_QEMU_USER_BASE, guest_domid, LIBXL_QEMU_USER_SHARED); + "Could not find user %s%d or %s or range base pseudo-user %s, cannot restrict", + LIBXL_QEMU_USER_BASE, guest_domid, LIBXL_QEMU_USER_SHARED, + LIBXL_QEMU_USER_RANGE_BASE); return ERROR_INVAL; end_search: